package com.cango.student.disruptor.disruptor;

import com.lmax.disruptor.EventFactory;

/**
 * 用于产生FileData的工厂类，会在Disruptor系统初始化时，构造所有的缓冲区中的对象实例。
 */
public class DisruptorFactory implements EventFactory<FileData> {

    @Override
    public FileData newInstance() {
        return new FileData();
    }
}
